<?php
$no_layout = true;
$title = "login";
include "header.phtml";
?>

<h2>login here</h2>

<?php if($this->error){ ?>
<div style="border: 1px solid #FF6666; background-color:#FFCCCC; padding: 12px;"><?php $this->out('error'); ?></div>
<?php } ?>

<form method="post" action="?action=login">

<table>

<tr>
<td>username</td>
<td><input name="username" type="text" value="<?php $this->out('username'); ?>" /></td>
</tr>

<tr>
<td>password</td>
<td><input name="password" type="password" value="" /></td>
</tr>

<tr>
<td>captcha</td>
<td>
<?php
$error = null;
echo recaptcha_get_html($this->publickey, $error);
?>

</tr>

<tr>
<td colspan="2"><button type="submit">login</button></td>
</tr>

</table>

</form>

<?php
include "footer.phtml";
?>

